package oop1;

/**
 * @author oldliu
 * @since 1.0
 */
public class MobilePhone {
    String brand;
    String color;
    int price;
    Battery b;//??????

    public void show(){
        System.out.println("这部手机品牌是："+brand);
        System.out.println("颜色是"+color);
        System.out.println("价格是"+price+"元");
        System.out.println("电池信息如下：");
        //b.brand="iphone原装";
        System.out.println("牌子是："+b.brand+",容量是"+b.vol+"毫安");
        b.show();
    }
}
